package cn.tlb.xutilsdownload.annotation;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import cn.tlb.xutilsdownload.R;
@InjectContent(R.layout.activity_annotation)
public class AnnotationActivity extends AppCompatActivity {
    @InjectView(R.id.button2)
    private Button button;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        CompomentUtil.inject(this);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(AnnotationActivity.this, "注入成功!", Toast.LENGTH_SHORT).show();
            }
        });
    }
}
